home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
HYP
/
A-B
/
ButtonStax.cpt
/
Region Buttons
/
card_3858.txt
< prev
next >
Wrap
Text File
|
1989-02-26
|
710b
|
25 lines
-- card: 3858 from stack: in
-- bmap block id: 0
-- flags: 0000
-- background id: 2722
-- name:
-- part contents for background part 14
----- text -----
How is it done?
-- part contents for background part 13
----- text -----
This feat is accomplished with the help of 3 commands within an external command (XCMD) called "ButtonRgn". These commands are:
NewRgn: Creates the shape(s) of the new button(s) and pastes them on the screen.
TestHit: Checks the mouse locations against all the regions. Returns the number of the button hit or zero if none hit.
DisposeRgn: Removes the button regions from memory. Does NOT erase them from the screen.
-- part contents for background part 15
----- text -----
2